package com.zdzx.common.exception;

import com.zdzx.common.result.ResultCode;

public class BaseException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String code;

	private Object msg;

	public BaseException() {
		super();
	}

	public BaseException(String code, Object msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Object getMsg() {
		return msg;
	}

	public void setMsg(Object msg) {
		this.msg = msg;
	}

	public BaseException(ResultCode resultEnum) {
		super(resultEnum.getMes());
		this.code = resultEnum.getCode();
	}
}
